package cc.uncarbon.module.custom.model.request;

import cc.uncarbon.framework.core.constant.HelioConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-分页列表用户信息 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminUserListDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "姓名(关键词)")
    private String name;

    @Schema(description = "昵称(关键词)")
    private String nickname;

    @Schema(description = "密码，建议加密存储(关键词)")
    private String password;

    @Schema(description = "头像URL(关键词)")
    private String avatar;

    @Schema(description = "性别,1，男，2，女")
    private Integer sex;

    @Schema(description = "微信唯一标识(关键词)")
    private String wxUnionid;

    @Schema(description = "微信昵称(关键词)")
    private String wxName;

    @Schema(description = "手机号(关键词)")
    private String phone;

    @Schema(description = "生日")
    private LocalDate birthday;

    @Schema(description = "消费金额")
    private BigDecimal consumptionAmount;

    @Schema(description = "进店次数")
    private Integer serviceCount;

    @Schema(description = "访问次数")
    private Integer visitCount;

    @Schema(description = "时间区间起")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    private LocalDateTime beginAt;

    @Schema(description = "时间区间止")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    private LocalDateTime endAt;

}
